package dnl.dtools.grm.ftp;

import java.net.URL;

public class PG {
	public static void main(String[] args) throws Exception {
//		FTPClient f=new FTPClient();
//	    f.connect("localhost");
//	    f.login("daniel", "hereiam");
//	    
//	    FTPFile[] listFiles = f.listFiles();
//	    for (FTPFile file : listFiles) {
//			System.err.println(file.getName());
//		}
	    
		URL url = new URL("file:///home/daniel");
	    System.out.println(url.getHost());
	    System.out.println(url.getPath());
	    
	}
}
